<div class="form_container">
    {% if TheFAQ %}<h1>Edit FAQ</h1>
    {% else %}<h1>Create FAQ</h1>
    {% endif %}

<form action='.' method='post'>{% csrf_token %}
    <button type="submit" class="button SaveButton" name="Save" value="SaveEdit" style="position: fixed; bottom: 0px; right: 0px; z-index: 5;" title="Save and Continue Editing">Save</button>

<table>
{{form.as_table}}
<tr>
    <td colspan="4" class="Buttons">
        <button type="submit" class="button SaveButton floatleft" name="Save" value="SaveEdit" title="Save and Continue Editing">Save and Continue</button>
        <button type="submit" class="button SaveButton floatleft" name="Save" value="SaveReturn" title="Save and Return to FAQ Management">Save and Return</button>
        <a class="button SaveButton" href="{% course_url management app='help' %}">Cancel</a>
    </td>
</tr>
</table>
</form>
{% if TheFAQ %}
<hr>
	{% load files %}
	<h2>Files</h2>
	{% render_file_list for TheFAQ %}
	<hr>
	<h2>New File</h2>
	{% render_file_form for TheFAQ %}
{% endif %}
</div>
